home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
DATACH.CST
/
00229_Script_bar comp pop
< prev
next >
Wrap
Text File
|
1999-03-07
|
1KB
|
61 lines
property thePopLocn, popSpriten, popNamen, mySpriten, faraway, fieldObjn
property thehilitesprite
global currentChartName, popbgSpriten
on new me
set mySpriten = the spriteNum of me
set popSpriten = mySpriten + 1
set popbgSpriten = mySpriten - 3
set right = the right of sprite (mySpriten - 2)
set top = the top of sprite (mySpriten -2)
set thePopLocn = point(right, top)
set thehilitesprite = mySpriten - 1
set popNamen = "mdl_field"
puppetSprite popSpriten, true
set faraway = point(-1000, -1000)
set the loc of sprite popSpriten = faraway
return me
end
on register me, theObj
set fieldObjn = theObj
return thehilitesprite
end
on mouseDown me
set the member of sprite popSpriten = member popNamen
set the loc of sprite popSpriten = thePopLocn
set the member of sprite popbgSpriten = member popNamen
set the loc of sprite popbgSpriten = thePopLocn
-- put "popped - " & thepoploc
updateStage
repeat while the stillDown
checkIfInsideh fieldObjn
end repeat
set the loc of sprite popSpriten = faraway
set the loc of sprite popbgSpriten = faraway
set name = getPlaneNameh(fieldObjn)
if name = "" then
nothing
else
compbars name
end if
set the loc of sprite popSpriten = faraway
set the loc of sprite popbgSpriten = faraway
updateStage
end
on mouseUp me
nothing
end